from selenium import webdriver
from selenium.webdriver.common.by import By
from time import sleep
from options import options

url=r'http://192.168.126.131/upload/'
driver=webdriver.Chrome(options=options)
driver.get(url)
driver.maximize_window()
sleep(3)


#进入默认板块
driver.find_element(By.LINK_TEXT,'默认版块').click()
sleep(6)
#查看帖子
driver.find_element(By.XPATH,'//*[@id="normalthread_39"]/tr/th/a[2]').click()
sleep(2)


